package com.learn.annotation_config.value;

import com.learn.annotation_config.value.beans.dao.UserDaoImpl;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;

@ComponentScan
@PropertySource("classpath:application.properties")
public class ValueApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ValueApplication.class);
        applicationContext.getBean("userDao", UserDaoImpl.class).show();
    }
}
